#ifndef PIPE_H
#define PIPE_H

const int NMAX = 5;

struct Pipe {
	int data[NMAX];
	int head;
	int size;
};


extern void Clear(struct Pipe * p);

extern int Push(struct Pipe * p, int key);

extern int Pop(struct Pipe * p);

extern int Head(const struct Pipe * p);

extern int Tail(const struct Pipe * p);

extern unsigned char IsEmpty(const struct Pipe * p);
#endif
